import Api from './api'

class RegionApi extends Api {
  getChildren (parentId = '', config) {
    return this.request({
      url: `${this.servicePath}/${this.modulePath}/children${parentId ? '/' + parentId : ''}`,
      method: 'get',
      ...config
    })
  }
}

export default new RegionApi('region')
